-- GENERATED SPELL FOR [Bloodmage Lynnore] --


function spell0_7506(pUnit, Event) --@Infallible Mind,n/a--
pUnit:FullCastSpellOnTarget(10690,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7506', 623, 1)
end

function spell1_7506(pUnit, Event) --@Spiritual Domination,n/a--
pUnit:FullCastSpellOnTarget(10691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7506', 652, 1)
end

function Sorts_7506(pUnit, Event)
local choix_sorts_7506 = math.random(0, 1)
if choix_sorts_7506 == 0 then
pUnit:RegisterEvent('spell0_7506', 1, 1)
end
if choix_sorts_7506 == 1 then
pUnit:RegisterEvent('spell1_7506', 1, 1)
end
end

function mob7506_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7506', math.random(1500, 3000), 1)
end

function mob7506_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7506_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7506_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7506, 1, 'mob7506_Action')
RegisterUnitEvent(7506, 2, 'mob7506_Leave')
RegisterUnitEvent(7506, 3, 'mob7506_Kill')
RegisterUnitEvent(7506, 4, 'mob7506_Die')
